package com.firefoxking.mysite.dao;

import com.firefoxking.mysite.entity.AttAch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AttAchMapper {

    /**
     * 田间单个附件信息
     * @param attAch
     * @return
     */
    int addAttAch(AttAch attAch);

    /**
     * 批量添加附件信息
     * @param attAchList
     * @return
     */
    int batchAddAttAch(List<AttAch> attAchList);

    /**
     * 根据主键编号删除附件信息
     * @param id
     * @return
     */
    int deleteAttAch(int id);

    int updateAttAch(AttAch attAch);

    AttAch getAttAchById(@Param("id") int id);

    List<AttAch> getAtts();

    Long getAttsCount();
}
